package com.feishi.project.move;

import lombok.Data;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: caixq
 * Date: 2019-11-14
 * Time: 下午1:52
 */
@Data
public class Direct {

    private float x;
    private float y;
    private float z;
    private float speed;

    public static void main(String[] args){
        int num=10;
        System.out.println(num+getNext(num,num));
    }
    public static int getNext(int y, int z){
        int num=(y+1)/2+(z+1)/4;
        if(num<=0){
            System.out.println(y+"::"+z);
            return 0;
        }
        System.out.println(y+"::"+z+"::"+num);
        return num+getNext((y+1)%2+num-1,(z+1)%4+num-1);
    }
}
